﻿#pragma once
#include <graphics.h>
#include "skyThread.h"
#include <Windows.h>
#include <stdio.h>
#include <math.h>


#ifndef M_PI
#define M_PI 3.1415926535
#endif

void drawBackground(float x0, float y0, const ViewState& state);
//void drawSky(double x0, double y0, const ViewState& state);
void drawFrame(double x0, double y0, const ViewState& state);
//void drawFrameLong(double x0, double y0, const ViewState& state);
void drawTop(float x0, float y0, const ViewState& state);
void drawFrameWith3DEffectRight(double x0, double y0, const ViewState& state);
void drawFrameWith3DEffectLeft(double x0, double y0, const ViewState& state);
void drawFrameRotatedTop(double x0, double y0, const ViewState& state);
void DrawInstrumentPanel(int x, int y, int width, int height);
//机械表
void drawFrameND(double x, double y, double w, double h);
void drawdialND(double x, double y, double w, double h);
void drawcircleND(double x, double y, double w, double h, double circleX, double circleY);
void drawButtonND(double x, double y, double w, double h);
void drawNDbackground(double x, double y, double w, double h);
void drawInnerScaleAndNumbersND(double x, double y, double w, double h, double target_heading);
void drawPlaneND(double x, double y, double w, double h);
void drawrightND(double x, double y, double width, double height, double current_heading);